home *** CD-ROM | disk | FTP | other *** search
- Path: brtph500.bnr.ca!oophelp
- From: oophelp@bnr.ca (OOP Helpline)
- Newsgroups: comp.lang.c++
- Subject: Re: Class problem
- Date: 28 Feb 1996 19:55:40 GMT
- Organization: Bell Northern Research
- Message-ID: <4h2bvs$pop@brtph500.bnr.ca>
- References: <4gv6j2$klv@news-e2b.gnn.com>
- NNTP-Posting-Host: brtph89d.bnr.ca
- Originator: oophelp@brtph89d
-
-
- |> class addr_data:public name_data
- |> {
- |> public:
- |> char street[25];
- |> char city[15];
- |> char state[3];
- |> int zip[11];
- |> int phone[10];
- |> }addr;
- |>
- |> Can someone please tell me what is wrong with this picture? I
- |> appreciate it.
-
- I see at least a half a dozen conceptual problems, such as improper
- inheritance, lack of encapsulation, lack of aggregation...
-
- Just because you can get your C++ code to compile or even to run does
- not mean you are doing it right.
-